// 全局变量
@gap: 24px;

// 颜色
@theme-color: #4d88ff;
@theme-color--hover: #467ce8;
@theme-color--active: #3761b5;
@gray-background-color: rgb(243, 245, 249);
@emphasize-font-color: #040b1a;
@font-color: rgba(4, 11, 26, 0.75);
@secondary-font-color: rgba(4, 11, 26, 0.6);
@minor-font-color: rgba(4, 11, 26, 0.5);
@not-important-font-color: rgba(4, 11, 26, 0.3);

// 字体
@small-size: 14px;
@base-size: 16px;
@big-size: 18px;

.ant-select-dropdown {
  padding: 2px 4px !important;
  max-height: 430px;
  box-shadow:
    0 8px 24px rgb(4 11 25 / 0.08),
    0 4px 12px rgb(4 11 25 / 0.04),
    0 0 1px #d5ddec;
  border-radius: 8px;
  background-color: #fff;
  z-index: 99999 !important;

  .ant-select-item {
    // margin: 2px 0;
    padding: 0 12px;
    border-radius: 8px;
    line-height: 46px;

    .ant-select-item-option-content {
      font-size: @base-size;
      color: @emphasize-font-color;
      cursor: pointer;
    }
  }

  .ant-select-item-option-selected {
    background-color: transparent !important;

    .ant-select-item-option-content {
      font-weight: 500;
      color: @theme-color;
    }
  }

  .ant-select-item-option-active {
    background-color: transparent !important;

    &:hover {
      background-color: rgb(77 136 255 / 0.15) !important;
    }
  }

  .ant-cascader-menu-item {
    padding: auto 12px !important;
    margin: 0 4px;
    border-radius: 8px !important;

    .ant-cascader-menu-item-content {
      font-size: @small-size !important;
    }

    &:hover {
      background-color: #edf3ff !important;
    }
  }
}

.ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner,
.ant-picker-cell-in-view.ant-picker-cell-range-start .ant-picker-cell-inner,
.ant-picker-cell-in-view.ant-picker-cell-range-end .ant-picker-cell-inner {
  background: @theme-color !important;
}

.ant-picker-cell-in-view.ant-picker-cell-today .ant-picker-cell-inner::before {
  border: 1px solid @theme-color !important;
}

.ant-picker-cell-in-view.ant-picker-cell-in-range::before {
  background: @theme-color !important;
  opacity: 0.05;
}

.ant-picker-header-view button:hover {
  color: @theme-color !important;
}

p {
  margin: 0;
}

.ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled) {
  background-color: #edf3ff !important;
}
